#ifndef _ACCEPTOR_UNIX_H_
#define _ACCEPTOR_UNIX_H_
#pragma once

struct IOContext : public epoll_event 
{
    IOType type{};
    char buffer[IO_CONTEXT_BUF_SIZE]{};
    socket_fd socket = SOCKET_ERR_FD;
    int sid = 0;
    AsSession *ioSession = nullptr;
    void reset()
    {
        memset(this, '0', sizeof(IOContext));
    }

    void clear()
    {
        reset();
    }
};

#endif